import dataStructure.SimpleNode;
import dataStructure.SinglyChain;
import dataStructure.interfaces.Node;

import java.util.List;

//TIP To <b>Run</b> code, press <shortcut actionId="Run"/> or
// click the <icon src="AllIcons.Actions.Execute"/> icon in the gutter.
public class Main {
    public static void main(String[] args) {
        SinglyChain<Object> chain = SinglyChain.create();

        chain.addFirst(1);
        chain.addFirst(2);
        chain.addLast(3);
        chain.addLast(4);

        System.out.println(chain);

        System.out.println(chain.removeFirst());
        System.out.println(chain.removeFirst());
        System.out.println(chain.removeFirst());

        System.out.println(chain);
    }
}